﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TcpTestServer.DataLayer
{
   public  enum DataTypeEnum
    {
        integer,
        text,
        floating_point
    }

   public  class Argument
    {
        public Argument(string name, string value, DataTypeEnum dt)
        {
            Name = name;
            Value = value;
            _dataType = dt;
        }
        public Argument(string name, DataTypeEnum dt)
        {
            Name = name;
            _dataType = dt;
        }

        public string DataType
        {
            get
            {
                switch(_dataType)
                {
                    case DataTypeEnum.floating_point:
                        return "xs:decimal";
                    case DataTypeEnum.integer:
                        return "xs:integer";
                    default:
                        return "xs:string";
                }
            }
        }

        public readonly string Name;
        public readonly string Value;

        private DataTypeEnum _dataType;
    }
}
